#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export LANG=zh_CN.UTF-8
#配置清华源
mv /etc/apt/sources.list /etc/apt/sources.list.bak
curl -sL https://mirrors.ustc.edu.cn/repogen/conf/ubuntu-https-4-focal > /etc/apt/sources.list
sudo apt update
#安装常用软件（完整版）
apt install -y git  lolcat  zlib1g-dev libbz2-dev libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev tk-dev libgdbm-dev libdb-dev libpcap-dev xz-utils libexpat1-dev liblzma-dev libffi-dev libc6-dev wget build-essential  libncursesw5-dev libnss3-dev 
sudo apt install ffmpeg -y
sudo apt-get install libfdk-aac-dev -y
sudo apt-get install libopencore-amrnb-dev -y
sudo apt-get install libopencore-amrwb-dev -y    
cd /tmp
echo "开始编译安装Python3.9时间比较长的，可以去喝个咖啡休息一下"
wget -c https://mirrors.huaweicloud.com/python/3.9.14/Python-3.9.14.tar.xz
tar -xf Python-3.9.14.tar.xz
cd Python-3.9.14
make 
make install

